package jd.se.common;

/**
 * @author SunJiahao
 * @date 2021-05-22 16:02
 */
public class CurrentUser {
    public static final String SESSION_ATTR_NAME="CurrentUser";//session属性名字
    // 所有的头像都存在AVATAR_DIR地址中
    public static final String AVATAR_DIR = "D:/git/avatar";

    private String userId;
    private String username;
    private String avatar;

    public CurrentUser(){}

    public CurrentUser(String userId){
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
